package com.beanbean.mvvmtest.base;

import android.databinding.ViewDataBinding;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;

public class BaseViewHolder<B extends ViewDataBinding> extends RecyclerView.ViewHolder {

    private B binding;

    public BaseViewHolder(@NonNull B bind) {
        super(bind.getRoot());
        binding = bind;
    }

    public B getBinding() {
        return binding;
    }
}
